package org.shreker.shan.core.domain;

import java.util.Date;
import org.shreker.shan.base.domain.BaseBean;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Log extends BaseBean {
	
	public static final Integer LOG_ALL = -1;
	public static final Integer LOG_FAIL = 0;
	public static final Integer LOG_SUCCESS = 1;

	private String username;
	private String loginIp;
	private Date loginTime;
	
	private Integer result;
	private Long userId;
	
	@Override
	public String toString() {
		return "Log [id=" + getId() + ", username=" + username + ", loginIp=" + loginIp + ", result=" + result + ", userId=" + userId + ", loginTime="
				+ loginTime + "]";
	}

}
